package com.lankystar.logistucs.spring.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="sonClassify")
public class SonClassify {

	private int sonClassifyId;
	private String sonClassifyState;
	private int sonClassifyKey;
	private Entrepot entrepot;
	private long createTime;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public int getSonClassifyId() {
		return sonClassifyId;
	}
	public void setSonClassifyId(int sonClassifyId) {
		this.sonClassifyId = sonClassifyId;
	}
	public String getSonClassifyState() {
		return sonClassifyState;
	}
	public void setSonClassifyState(String sonClassifyState) {
		this.sonClassifyState = sonClassifyState;
	}
	public int getSonClassifyKey() {
		return sonClassifyKey;
	}
	public void setSonClassifyKey(int sonClassifyKey) {
		this.sonClassifyKey = sonClassifyKey;
	}
	@ManyToOne
	@JoinColumn(name="entrepot_Id")
	public Entrepot getEntrepot() {
		return entrepot;
	}
	public void setEntrepot(Entrepot entrepot) {
		this.entrepot = entrepot;
	}
	public long getCreateTime() {
		return createTime;
	}
	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	
}
